package org.grow.common.controller;

import org.grow.common.interceptor.AuthInterceptor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 2023/9/20
 */

@RestController
@RequestMapping("/biz")
public class BizController {

    @PostMapping("/insert")
    public String insert(){
        String currentUser = AuthInterceptor.getCurrentUser();
        System.out.println(currentUser);
        return currentUser;
    }
}
